<template>
  <div id="centerRight1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-line" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2"></span>
        </div>
      </div>
      <div class="d-flex jc-center body-box">
        <dv-scroll-board class="dv-scr-board" :config="config" />
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      config: {
        header: ['level', 'date', 'amount'],
        data: [
          ['紧急', '10.18', "<span  class='colorRed'>0</span>"],
          // ['urgent', '10.18', "<span  class='colorRed'>0</span>"],
          // ['high', '10.18', "<span  class='colorOrange'>0</span>"],
          ['高危', '10.18', "<span  class='colorOrange'>0</span>"],
          ['中危', '10.18', "<span  class='colorYellow'>10</span>"],
          // ['medium', '10.18', "<span class='colorYellow'>3</span>"],
          // ['medium', '10.18', "<span class='colorYellow'>4</span>"],
          // ['low', '10.18', "<span  class='colorGrass'>21</span>"],
          ['低危', '10.18', "<span  class='colorGrass'>34</span>"],
          ['信息', '10.18', "<span class='colorBlue'>15</span>"]
        ],
        rowNum: 5, //表格行数
        headerHeight: 40,
        headerBGC: '#0f1325', //表头
        oddRowBGC: '#0f1325', //奇数行
        evenRowBGC: '#171c33', //偶数行
        index: true,
        columnWidth: [50],
        align: ['center']
      }
    }
  }
}
</script>

<style lang="scss" scoped>
$box-height: 410px;
$box-width: 300px;

#centerRight1 {
  padding: 16px;
  padding-top: 20px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;

  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }

  .text {
    color: #c3cbde;
  }

  .body-box {
    border-radius: 10px;
    overflow: hidden;

    .dv-scr-board {
      width: 270px;
      height: 340px;
    }
  }
}
</style>
